package him.serviceimple;

import him.dao.TestDAO;
import him.dto.education.TestDTO;
import him.service.TestService;

public class TestServiceImple implements TestService {
	private TestDAO testDAO;
	private static TestServiceImple testService;
	
	public static TestServiceImple getInstance(){
		if (testService==null) {
			testService= new TestServiceImple();
		}
		return testService;
	}
	@Override
	public int lastCodeNum() {
		return testDAO.lastCodeNum();
	}
	@Override
	public boolean deleteTest(String examCode) {
		return testDAO.deleteTest(examCode);
	}
	@Override
	public boolean insertTest(TestDTO dto) {
		return testDAO.insertTest(dto);
	}
	@Override
	public boolean updateTest(TestDTO dto) {
		return testDAO.updateTest(dto);
	}

}
